<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.js"></script>
</head>
<body>

<div id="root">

    <div v-show="show">hello world</div>
    <button @click="clicked">toggle</button>

    <ul>
        <li v-for="(item,index) of list " :key="index">{{item}}</li>
    </ul>


</div>


</body>
<script>
    new Vue({
        el: "#root",
        data: {
            show: true,
            list:[1,2,3],
        },
        methods: {
            clicked: function () {
                this.show = !this.show;
            }
        },

    })

</script>
</html>